package com.price.sample.http.myinterface

import com.price.sample.http.beans.WanBaseResponse
import com.price.sample.http.beans.BannerWithDefNPEField
import com.price.sample.http.beans.ListResponseBean
import retrofit2.Call
import retrofit2.http.GET

/**
 * wanandroid
 *
 */
interface WannaAndroidApi {
//    @GET("test")
    @GET("article/list/0/json")
    suspend fun getList(): WanBaseResponse<ListResponseBean>

    //测试直接写死参数 suspend
    @GET("banner/json")
    suspend fun getBanner(): WanBaseResponse<List<BannerWithDefNPEField>>

    @GET("test")
    suspend fun getTest(): WanBaseResponse<Any>

    //同步不能suspend
    @GET("test")
    fun getTest1(): Call<WanBaseResponse<Any>>
}